package com.egame.manage.biz.server.gc;

import java.util.List;

import cn.egame.common.exception.ExceptionCommonBase;
import com.egame.manage.biz.domain.AuditInfo;

public class AuditServiceImpl {
	private static AuditServiceImpl instance = null;
	private static byte[] SyncRoot = new byte[1];
	private AuditServiceDao dao = null;
	
	public static AuditServiceImpl getInstance() throws ExceptionCommonBase {
		if (instance == null) {
			synchronized (SyncRoot) {
				if (instance == null) {
					instance = new AuditServiceImpl();
				}
			}
		}
		return instance;
	}
	
	public AuditServiceImpl() throws ExceptionCommonBase{
		super();
		dao = new AuditServiceDao();
	}
	
	public int setAuditLog(int gId,int gameStatus,long operator)throws ExceptionCommonBase{
		return dao.setAuditLog(gId, gameStatus, operator);
	}
	
	public List<AuditInfo> listAuditInfoByGid(int gid)throws ExceptionCommonBase {
		return dao.listAuditInfoByGid(gid);
	}
}
